# $Id: PKGBUILD 71812 2012-06-02 10:31:32Z bluewind $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-mail-transport-dbx
pkgver=0.07
pkgrel=8
pkgdesc="Perl/CPAN Module Mail::Transport::Dbx : Parse Outlook Express mailboxes"
arch=("i686" "x86_64")
url="http://search.cpan.org/dist/Mail-Transport-Dbx"
license=("GPL" "PerlArtistic")
options=('!emptydirs')
source=("http://www.cpan.org/authors/id/V/VP/VPARSEVAL/Mail-Transport-Dbx-${pkgver}.tar.gz")
md5sums=('4dcf5346a67c0a7f861cb2bb51a7d14e')

build() {
  cd Mail-Transport-Dbx-${pkgver}

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd Mail-Transport-Dbx-${pkgver}

  make install DESTDIR=${pkgdir}

  find ${pkgdir} -name '.packlist' -delete
  find ${pkgdir} -name '*.pod' -delete
}
